package com.techysky.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Entity
@Table(name="sys_exam_record")
@Data@EqualsAndHashCode(callSuper=false)
public class ExamRecord extends BaseEntity {

	
	private static final long serialVersionUID = 1L;
	@Column(name="create_date")
	private String createDate;
	@Column(name="create_user")
	private String createUser;
	@ManyToOne
    @JoinColumn(name = "PAPER_ID")
	@JsonIgnore
    private Paper paper;
	@Column(name="spend_time")
	private Float spendTime;
	@Column(name="total_score")
	private Float totalScore;
	@Column(name="score")
	private Float score;
	@Column(name="user_id")
	private String userId;
	@Column(name="total_time")
	private Float totalTime;
}